14. Exercise: Add a URIMatcher

Add a URIMatcher

Exercise Code

Exercise: T09.03-Exercise-UriMatcher

Now it’s your turn to build a URI matcher!

SOLUTION:
  • Define final integer constants for multiple and single rows of data
  • Declare a static global variable for the complete UriMatcher
  • Define a buildUriMatcher method that associates URI's with their int match